package com.youlian.cloud.core.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 分页对象
 * @author liuhx
 * @create 2019/07/29 15:35
 * @email liuhx@elab-plus.com
 **/
@ApiModel("分页对象")
public class PageInfoModel<T> {
    @ApiModelProperty(
            name = "rowTotal",
            value = "总行数"
    )
    private int rowTotal;
    @ApiModelProperty(
            name = "pageSize",
            value = "每页数据大小"
    )
    private int pageSize = 3;
    @ApiModelProperty(
            name = "count",
            value = "当前页码",
            example = "1"
    )
    private int count = 1;
    @ApiModelProperty(
            name = "total",
            value = "总大小"
    )
    private int total;
    @ApiModelProperty(
            name = "beginIndex",
            value = "数据开始下标"
    )
    private int beginIndex;
    @ApiModelProperty(
            name = "endIndex",
            value = "数据结束下标"
    )
    private int endIndex;
    @ApiModelProperty(
            name = "resultSet",
            value = "数据结果集合"
    )
    private List<T> resultSet;
    @ApiModelProperty(
            name = "orderby",
            value = "排序字段"
    )
    private String orderby = "";

    public PageInfoModel() {
    }

    public List<T> getResultSet() {
        return this.resultSet;
    }

    public void setResultSet(List<T> resultSet) {
        this.resultSet = resultSet;
    }

    public int getRowTotal() {
        return this.rowTotal;
    }

    public void setRowTotal(int rowTotal) {
        this.rowTotal = rowTotal;
    }

    public int getCount() {
        return this.count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getTotal() {
        return this.total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getTotalRow() {
        return this.rowTotal;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getBeginIndex() {
        return this.beginIndex;
    }

    public void setBeginIndex(int beginIndex) {
        this.beginIndex = beginIndex;
    }

    public int getEndIndex() {
        return this.endIndex;
    }

    public void setEndIndex(int endIndex) {
        this.endIndex = endIndex;
    }

    public String getOrderby() {
        return this.orderby;
    }

    public void setOrderby(String orderby) {
        this.orderby = orderby;
    }
}
